//
//  StatusPictureViewCell.m
//  OC-微博
//
//  Created by Apple on 15/11/13.
//  Copyright © 2015年 Apple. All rights reserved.
//

#import "StatusPictureViewCell.h"
@interface StatusPictureViewCell()
@property (nonatomic, strong) UIImageView *iconView;

@end
@implementation StatusPictureViewCell
#pragma mark /*******************  懒加载  *******************/
- (void)setImageURL:(NSURL *)imageURL {
    _imageURL = imageURL;
   
    [ self.iconView sd_setImageWithURL:imageURL placeholderImage:nil options:SDWebImageRetryFailed | SDWebImageRefreshCached ];
    
    }
#pragma mark /******************* 构造函数  *******************/
-(instancetype)initWithFrame:(CGRect)frame {
    if (self = [super initWithFrame:frame]) {
        [self setupUI];
       
    }
    
    return self;
}
#pragma mark /*******************  添加控件  *******************/
- (void)setupUI {
    [self.contentView addSubview:self.iconView];
     [self.iconView makeConstraints:^(MASConstraintMaker *make) {
         make.edges.equalTo(self.contentView);
     }];
}

#pragma mark /*******************  懒加载  *******************/
//懒加载
-(UIImageView *)iconView {
    
    if (_iconView == nil) {
        
        _iconView = [UIImageView new];
        
    }
    return _iconView;
}
@end
